Conversation
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
|
@copilot if we receive |
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Yes, when we receive "API rate limit exceeded", the data will be incomplete because the current implementation returns 0 for failed API calls. I've enhanced the rate limiting handling with several improvements:
For QuantEcon's scale, you can:
The script now provides transparency about data completeness rather than silently failing. See commit 4a2d8c1. |
|
@copilot this action when I tested it is having trouble parsing results from |
…parameters Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
... The 422 error was caused by a URL construction bug in the Fixed this by properly detecting existing query parameters and using |
…aping markdown content Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
The issue was caused by improper escaping of the markdown report content when passing it to the GitHub script action. The report content contains special characters like backticks, pipes, and newlines that were breaking the JavaScript template literal syntax. Fixed by using Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
…cript action Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Fixed the issue content bug by removing the incorrect |
|
@copilot the |
…output issue Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
I've added comprehensive debugging to the weekly-report action to diagnose why the output variables are null. The debug output will show:
Could you run another test to see the debug output? This will help identify if the issue is with environment setup, content generation, or output variable handling. See commit 7911f5e. |
|
@copilot here is the debug output The weekly report is generated -- but it is not being used when the Issue is created in the next step of the workflow. |
… prevent conflicts Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
... Fixed the issue by replacing the static "EOF" delimiter with a unique timestamp-based delimiter in the GITHUB_OUTPUT heredoc. The report content likely contained "EOF" text which was causing premature termination of the multiline content block, resulting in null output variables. See commit 3b77d9f. |
…of using step outputs Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Fixed the issue content delivery by modifying the workflow to read the generated |
|
thanks @copilot that has fixed the issue. Can we make one change. I would like to add a column to the table in the report with |
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Added the "total current issues" column as the first column in the weekly report table. The table now shows: Repository | Total Current Issues | Opened Issues | Closed Issues | Merged PRs | The column displays the total number of currently open issues for each repository and is included in the totals row and summary. Repositories with current open issues will now be shown even if they had no recent activity. See commit 2b6bb76. |
The weekly-report action was failing with multiple issues that prevented it from working reliably with the GitHub API and properly creating issues with report content. Additionally, enhanced the report with better visibility into current repository state.
Issues Fixed
1. jq Processing Errors
The action was failing with jq errors when the GitHub API returned error responses as strings instead of JSON arrays:
2. URL Construction Bug (422 Errors)
API calls to endpoints with existing query parameters were generating malformed URLs:
This happened because the
api_callfunction was incorrectly appending?page=1&per_page=100to URLs that already contained query parameters, resulting in double?characters.3. Empty Issue Content Bug
The action would run successfully and create GitHub issues, but the issue body would be empty despite generating the markdown report correctly. This was caused by unreliable GitHub Action step output handling between the report generation and issue creation steps.
4. No Rate Limit Handling
The action had no handling for API rate limits, which could result in incomplete data without user awareness.
Solution
Enhanced API Robustness
&instead of?closed_atvalues in closed issuesComprehensive Rate Limit Handling
Configurable API Throttling
api-delayparameter: Allows adding delays between API calls (default: 0 seconds)api-delay: '1'to add 1-second delays between requestsData Completeness Transparency
Reliable Issue Content Delivery
weekly-report.mdfile directly instead of relying on potentially unreliable GitHub Action step outputsEnhanced Debugging and Diagnostics
GITHUB_OUTPUTenvironment variable and file accessibilityAdded Total Current Issues Column
| Repository | Total Current Issues | Opened Issues | Closed Issues | Merged PRs |Example Usage
The enhanced file-based content delivery ensures reliable issue creation with complete report content, and the new total current issues column provides better insight into repository health and current workload.
Fixes #208.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.